<template>
  <div>
    <preview :pirList="list"></preview>
  </div>
</template>

<script>
import Preview from '../views/components/Preview'
export default {
  name: 'TestView1',
  components: {
    Preview
  },
  data () {
    return {
      list: [{
        // src: require('./image/1.jpg'),  //图片路径
        src: 'https://placekitten.com/600/400', // 图片路径
        w: 800, // 图片预览时的宽
        h: 600 // 图片预览时的高
      }, {
        src: 'https://placekitten.com/1200/900',
        w: 1200,
        h: 900
      }, {
        src: 'http://pic1.win4000.com/wallpaper/8/5338e5a2e99f5.jpg',
        w: 1366,
        h: 768
      }]
    }
  }
}
</script>

<style scoped></style>
